package com.caipin.domain.table;

/**
 * @Author: zhunian0322@163.com
 * @DateTime: 2021-10-06 11:36
 * @Description: TODO
 */
@TableName("t_security_face")
public class SecurityFace {
    @TableId(type = IdType.AUTO)
    private Long id;

    private Long imageId;

    private String deviceId;

    private Integer channelId;

    private String snapTime;

    private String type;

    private String chip;

    private Integer bboxX;

    private Integer bboxY;

    private Integer bboxWidth;

    private Integer bboxHeight;

    private Double probability;

    private String userId;

    private String username;

    private Integer userImageId;

    private String imageBase64;

    private String citizenId;

    private String employeeId;

    private String createdTime;

    private String rosterList;

    private String featureBin;

    private String alarmInfoType;

    private String alarmInfoName;

    private Boolean faceStranger;

    private Boolean mark;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private String createTime;

    private String imageSrc;

    public com.caipin.domain.table.SecurityFace setId(Long id) {
        this.id = id;
        return this;
    }

    public com.caipin.domain.table.SecurityFace setImageId(Long imageId) {
        this.imageId = imageId;
        return this;
    }

    public com.caipin.domain.table.SecurityFace setDeviceId(String deviceId) {
        this.deviceId = deviceId;
        return this;
    }

    public com.caipin.domain.table.SecurityFace setChannelId(Integer channelId) {
        this.channelId = channelId;
        return this;
    }

    public com.caipin.domain.table.SecurityFace setSnapTime(String snapTime) {
        this.snapTime = snapTime;
        return this;
    }

    public com.caipin.domain.table.SecurityFace setType(String type) {
        this.type = type;
        return this;
    }

    public com.caipin.domain.table.SecurityFace setChip(String chip) {
        this.chip = chip;
        return this;
    }

    public com.caipin.domain.table.SecurityFace setBboxX(Integer bboxX) {
        this.bboxX = bboxX;
        return this;
    }

    public com.caipin.domain.table.SecurityFace setBboxY(Integer bboxY) {
        this.bboxY = bboxY;
        return this;
    }

    public com.caipin.domain.table.SecurityFace setBboxWidth(Integer bboxWidth) {
        this.bboxWidth = bboxWidth;
        return this;
    }

    public com.caipin.domain.table.SecurityFace setBboxHeight(Integer bboxHeight) {
        this.bboxHeight = bboxHeight;
        return this;
    }

    public com.caipin.domain.table.SecurityFace setProbability(Double probability) {
        this.probability = probability;
        return this;
    }

    public com.caipin.domain.table.SecurityFace setUserId(String userId) {
        this.userId = userId;
        return this;
    }

    public com.caipin.domain.table.SecurityFace setUsername(String username) {
        this.username = username;
        return this;
    }

    public com.caipin.domain.table.SecurityFace setUserImageId(Integer userImageId) {
        this.userImageId = userImageId;
        return this;
    }

    public com.caipin.domain.table.SecurityFace setImageBase64(String imageBase64) {
        this.imageBase64 = imageBase64;
        return this;
    }

    public com.caipin.domain.table.SecurityFace setCitizenId(String citizenId) {
        this.citizenId = citizenId;
        return this;
    }

    public com.caipin.domain.table.SecurityFace setEmployeeId(String employeeId) {
        this.employeeId = employeeId;
        return this;
    }

    public com.caipin.domain.table.SecurityFace setCreatedTime(String createdTime) {
        this.createdTime = createdTime;
        return this;
    }

    public com.caipin.domain.table.SecurityFace setRosterList(String rosterList) {
        this.rosterList = rosterList;
        return this;
    }

    public com.caipin.domain.table.SecurityFace setFeatureBin(String featureBin) {
        this.featureBin = featureBin;
        return this;
    }

    public com.caipin.domain.table.SecurityFace setAlarmInfoType(String alarmInfoType) {
        this.alarmInfoType = alarmInfoType;
        return this;
    }

    public com.caipin.domain.table.SecurityFace setAlarmInfoName(String alarmInfoName) {
        this.alarmInfoName = alarmInfoName;
        return this;
    }

    public com.caipin.domain.table.SecurityFace setFaceStranger(Boolean faceStranger) {
        this.faceStranger = faceStranger;
        return this;
    }

    public com.caipin.domain.table.SecurityFace setMark(Boolean mark) {
        this.mark = mark;
        return this;
    }

    public com.caipin.domain.table.SecurityFace setCreateTime(String createTime) {
        this.createTime = createTime;
        return this;
    }

    public com.caipin.domain.table.SecurityFace setImageSrc(String imageSrc) {
        this.imageSrc = imageSrc;
        return this;
    }

    public boolean equals(Object o) {
        if (o == this)
            return true;
        if (!(o instanceof com.caipin.domain.table.SecurityFace))
            return false;
        com.caipin.domain.table.SecurityFace other = (com.caipin.domain.table.SecurityFace)o;
        if (!other.canEqual(this))
            return false;
        Object this$id = getId(), other$id = other.getId();
        if ((this$id == null) ? (other$id != null) : !this$id.equals(other$id))
            return false;
        Object this$imageId = getImageId(), other$imageId = other.getImageId();
        if ((this$imageId == null) ? (other$imageId != null) : !this$imageId.equals(other$imageId))
            return false;
        Object this$deviceId = getDeviceId(), other$deviceId = other.getDeviceId();
        if ((this$deviceId == null) ? (other$deviceId != null) : !this$deviceId.equals(other$deviceId))
            return false;
        Object this$channelId = getChannelId(), other$channelId = other.getChannelId();
        if ((this$channelId == null) ? (other$channelId != null) : !this$channelId.equals(other$channelId))
            return false;
        Object this$snapTime = getSnapTime(), other$snapTime = other.getSnapTime();
        if ((this$snapTime == null) ? (other$snapTime != null) : !this$snapTime.equals(other$snapTime))
            return false;
        Object this$type = getType(), other$type = other.getType();
        if ((this$type == null) ? (other$type != null) : !this$type.equals(other$type))
            return false;
        Object this$chip = getChip(), other$chip = other.getChip();
        if ((this$chip == null) ? (other$chip != null) : !this$chip.equals(other$chip))
            return false;
        Object this$bboxX = getBboxX(), other$bboxX = other.getBboxX();
        if ((this$bboxX == null) ? (other$bboxX != null) : !this$bboxX.equals(other$bboxX))
            return false;
        Object this$bboxY = getBboxY(), other$bboxY = other.getBboxY();
        if ((this$bboxY == null) ? (other$bboxY != null) : !this$bboxY.equals(other$bboxY))
            return false;
        Object this$bboxWidth = getBboxWidth(), other$bboxWidth = other.getBboxWidth();
        if ((this$bboxWidth == null) ? (other$bboxWidth != null) : !this$bboxWidth.equals(other$bboxWidth))
            return false;
        Object this$bboxHeight = getBboxHeight(), other$bboxHeight = other.getBboxHeight();
        if ((this$bboxHeight == null) ? (other$bboxHeight != null) : !this$bboxHeight.equals(other$bboxHeight))
            return false;
        Object this$probability = getProbability(), other$probability = other.getProbability();
        if ((this$probability == null) ? (other$probability != null) : !this$probability.equals(other$probability))
            return false;
        Object this$userId = getUserId(), other$userId = other.getUserId();
        if ((this$userId == null) ? (other$userId != null) : !this$userId.equals(other$userId))
            return false;
        Object this$username = getUsername(), other$username = other.getUsername();
        if ((this$username == null) ? (other$username != null) : !this$username.equals(other$username))
            return false;
        Object this$userImageId = getUserImageId(), other$userImageId = other.getUserImageId();
        if ((this$userImageId == null) ? (other$userImageId != null) : !this$userImageId.equals(other$userImageId))
            return false;
        Object this$imageBase64 = getImageBase64(), other$imageBase64 = other.getImageBase64();
        if ((this$imageBase64 == null) ? (other$imageBase64 != null) : !this$imageBase64.equals(other$imageBase64))
            return false;
        Object this$citizenId = getCitizenId(), other$citizenId = other.getCitizenId();
        if ((this$citizenId == null) ? (other$citizenId != null) : !this$citizenId.equals(other$citizenId))
            return false;
        Object this$employeeId = getEmployeeId(), other$employeeId = other.getEmployeeId();
        if ((this$employeeId == null) ? (other$employeeId != null) : !this$employeeId.equals(other$employeeId))
            return false;
        Object this$createdTime = getCreatedTime(), other$createdTime = other.getCreatedTime();
        if ((this$createdTime == null) ? (other$createdTime != null) : !this$createdTime.equals(other$createdTime))
            return false;
        Object this$rosterList = getRosterList(), other$rosterList = other.getRosterList();
        if ((this$rosterList == null) ? (other$rosterList != null) : !this$rosterList.equals(other$rosterList))
            return false;
        Object this$featureBin = getFeatureBin(), other$featureBin = other.getFeatureBin();
        if ((this$featureBin == null) ? (other$featureBin != null) : !this$featureBin.equals(other$featureBin))
            return false;
        Object this$alarmInfoType = getAlarmInfoType(), other$alarmInfoType = other.getAlarmInfoType();
        if ((this$alarmInfoType == null) ? (other$alarmInfoType != null) : !this$alarmInfoType.equals(other$alarmInfoType))
            return false;
        Object this$alarmInfoName = getAlarmInfoName(), other$alarmInfoName = other.getAlarmInfoName();
        if ((this$alarmInfoName == null) ? (other$alarmInfoName != null) : !this$alarmInfoName.equals(other$alarmInfoName))
            return false;
        Object this$faceStranger = getFaceStranger(), other$faceStranger = other.getFaceStranger();
        if ((this$faceStranger == null) ? (other$faceStranger != null) : !this$faceStranger.equals(other$faceStranger))
            return false;
        Object this$mark = getMark(), other$mark = other.getMark();
        if ((this$mark == null) ? (other$mark != null) : !this$mark.equals(other$mark))
            return false;
        Object this$createTime = getCreateTime(), other$createTime = other.getCreateTime();
        if ((this$createTime == null) ? (other$createTime != null) : !this$createTime.equals(other$createTime))
            return false;
        Object this$imageSrc = getImageSrc(), other$imageSrc = other.getImageSrc();
        return !((this$imageSrc == null) ? (other$imageSrc != null) : !this$imageSrc.equals(other$imageSrc));
    }

    protected boolean canEqual(Object other) {
        return other instanceof com.caipin.domain.table.SecurityFace;
    }

    public int hashCode() {
        int PRIME = 59;
        result = 1;
        Object $id = getId();
        result = result * 59 + (($id == null) ? 43 : $id.hashCode());
        Object $imageId = getImageId();
        result = result * 59 + (($imageId == null) ? 43 : $imageId.hashCode());
        Object $deviceId = getDeviceId();
        result = result * 59 + (($deviceId == null) ? 43 : $deviceId.hashCode());
        Object $channelId = getChannelId();
        result = result * 59 + (($channelId == null) ? 43 : $channelId.hashCode());
        Object $snapTime = getSnapTime();
        result = result * 59 + (($snapTime == null) ? 43 : $snapTime.hashCode());
        Object $type = getType();
        result = result * 59 + (($type == null) ? 43 : $type.hashCode());
        Object $chip = getChip();
        result = result * 59 + (($chip == null) ? 43 : $chip.hashCode());
        Object $bboxX = getBboxX();
        result = result * 59 + (($bboxX == null) ? 43 : $bboxX.hashCode());
        Object $bboxY = getBboxY();
        result = result * 59 + (($bboxY == null) ? 43 : $bboxY.hashCode());
        Object $bboxWidth = getBboxWidth();
        result = result * 59 + (($bboxWidth == null) ? 43 : $bboxWidth.hashCode());
        Object $bboxHeight = getBboxHeight();
        result = result * 59 + (($bboxHeight == null) ? 43 : $bboxHeight.hashCode());
        Object $probability = getProbability();
        result = result * 59 + (($probability == null) ? 43 : $probability.hashCode());
        Object $userId = getUserId();
        result = result * 59 + (($userId == null) ? 43 : $userId.hashCode());
        Object $username = getUsername();
        result = result * 59 + (($username == null) ? 43 : $username.hashCode());
        Object $userImageId = getUserImageId();
        result = result * 59 + (($userImageId == null) ? 43 : $userImageId.hashCode());
        Object $imageBase64 = getImageBase64();
        result = result * 59 + (($imageBase64 == null) ? 43 : $imageBase64.hashCode());
        Object $citizenId = getCitizenId();
        result = result * 59 + (($citizenId == null) ? 43 : $citizenId.hashCode());
        Object $employeeId = getEmployeeId();
        result = result * 59 + (($employeeId == null) ? 43 : $employeeId.hashCode());
        Object $createdTime = getCreatedTime();
        result = result * 59 + (($createdTime == null) ? 43 : $createdTime.hashCode());
        Object $rosterList = getRosterList();
        result = result * 59 + (($rosterList == null) ? 43 : $rosterList.hashCode());
        Object $featureBin = getFeatureBin();
        result = result * 59 + (($featureBin == null) ? 43 : $featureBin.hashCode());
        Object $alarmInfoType = getAlarmInfoType();
        result = result * 59 + (($alarmInfoType == null) ? 43 : $alarmInfoType.hashCode());
        Object $alarmInfoName = getAlarmInfoName();
        result = result * 59 + (($alarmInfoName == null) ? 43 : $alarmInfoName.hashCode());
        Object $faceStranger = getFaceStranger();
        result = result * 59 + (($faceStranger == null) ? 43 : $faceStranger.hashCode());
        Object $mark = getMark();
        result = result * 59 + (($mark == null) ? 43 : $mark.hashCode());
        Object $createTime = getCreateTime();
        result = result * 59 + (($createTime == null) ? 43 : $createTime.hashCode());
        Object $imageSrc = getImageSrc();
        return result * 59 + (($imageSrc == null) ? 43 : $imageSrc.hashCode());
    }

    public String toString() {
        return "SecurityFace(id=" + getId() + ", imageId=" + getImageId() + ", deviceId=" + getDeviceId() + ", channelId=" + getChannelId() + ", snapTime=" + getSnapTime() + ", type=" + getType() + ", chip=" + getChip() + ", bboxX=" + getBboxX() + ", bboxY=" + getBboxY() + ", bboxWidth=" + getBboxWidth() + ", bboxHeight=" + getBboxHeight() + ", probability=" + getProbability() + ", userId=" + getUserId() + ", username=" + getUsername() + ", userImageId=" + getUserImageId() + ", imageBase64=" + getImageBase64() + ", citizenId=" + getCitizenId() + ", employeeId=" + getEmployeeId() + ", createdTime=" + getCreatedTime() + ", rosterList=" + getRosterList() + ", featureBin=" + getFeatureBin() + ", alarmInfoType=" + getAlarmInfoType() + ", alarmInfoName=" + getAlarmInfoName() + ", faceStranger=" + getFaceStranger() + ", mark=" + getMark() + ", createTime=" + getCreateTime() + ", imageSrc=" + getImageSrc() + ")";
    }

    public Long getId() {
        return this.id;
    }

    public Long getImageId() {
        return this.imageId;
    }

    public String getDeviceId() {
        return this.deviceId;
    }

    public Integer getChannelId() {
        return this.channelId;
    }

    public String getSnapTime() {
        return this.snapTime;
    }

    public String getType() {
        return this.type;
    }

    public String getChip() {
        return this.chip;
    }

    public Integer getBboxX() {
        return this.bboxX;
    }

    public Integer getBboxY() {
        return this.bboxY;
    }

    public Integer getBboxWidth() {
        return this.bboxWidth;
    }

    public Integer getBboxHeight() {
        return this.bboxHeight;
    }

    public Double getProbability() {
        return this.probability;
    }

    public String getUserId() {
        return this.userId;
    }

    public String getUsername() {
        return this.username;
    }

    public Integer getUserImageId() {
        return this.userImageId;
    }

    public String getImageBase64() {
        return this.imageBase64;
    }

    public String getCitizenId() {
        return this.citizenId;
    }

    public String getEmployeeId() {
        return this.employeeId;
    }

    public String getCreatedTime() {
        return this.createdTime;
    }

    public String getRosterList() {
        return this.rosterList;
    }

    public String getFeatureBin() {
        return this.featureBin;
    }

    public String getAlarmInfoType() {
        return this.alarmInfoType;
    }

    public String getAlarmInfoName() {
        return this.alarmInfoName;
    }

    public Boolean getFaceStranger() {
        return this.faceStranger;
    }

    public Boolean getMark() {
        return this.mark;
    }

    public String getCreateTime() {
        return this.createTime;
    }

    public String getImageSrc() {
        return this.imageSrc;
    }
}

